home *** CD-ROM | disk | FTP | other *** search
/ Champak 130 / Vol 130.iso / games / hummer.swf / scripts / __Packages / engine / Screen.as < prev   
Encoding:
Text File  |  2007-01-08  |  13.2 KB  |  454 lines

  1. var ┬º\x01┬º = 683;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 683)
  5.    {
  6.       set("\x01",eval("\x01") - 598);
  7.       ┬º┬ºpush(true);
  8.       continue;
  9.    }
  10.    if(eval("\x01") == 961)
  11.    {
  12.       set("\x01",eval("\x01") - 746);
  13.       if(┬º┬ºpop())
  14.       {
  15.          set("\x01",eval("\x01") + 454);
  16.       }
  17.       continue;
  18.    }
  19.    if(eval("\x01") == 85)
  20.    {
  21.       set("\x01",eval("\x01") + 20);
  22.       if(┬º┬ºpop())
  23.       {
  24.          set("\x01",eval("\x01") + 138);
  25.       }
  26.       continue;
  27.    }
  28.    if(eval("\x01") == 890)
  29.    {
  30.       set("\x01",eval("\x01") - 831);
  31.       nextFrame();
  32.       break;
  33.    }
  34.    if(eval("\x01") == 561)
  35.    {
  36.       set("\x01",eval("\x01") + 146);
  37.       if(┬º┬ºpop())
  38.       {
  39.          set("\x01",eval("\x01") - 331);
  40.       }
  41.       continue;
  42.    }
  43.    if(eval("\x01") == 59)
  44.    {
  45.       set("\x01",eval("\x01") + 902);
  46.       ┬º┬ºpush(true);
  47.       continue;
  48.    }
  49.    if(eval("\x01") == 769)
  50.    {
  51.       set("\x01",eval("\x01") - 404);
  52.       if(┬º┬ºpop())
  53.       {
  54.          set("\x01",eval("\x01") + 227);
  55.       }
  56.       continue;
  57.    }
  58.    if(eval("\x01") == 923)
  59.    {
  60.       set("\x01",eval("\x01") - 413);
  61.       if(┬º┬ºpop())
  62.       {
  63.          set("\x01",eval("\x01") - 426);
  64.       }
  65.       continue;
  66.    }
  67.    if(eval("\x01") == 376)
  68.    {
  69.       set("\x01",eval("\x01") + 547);
  70.       ┬º┬ºpush(true);
  71.       continue;
  72.    }
  73.    if(eval("\x01") == 707)
  74.    {
  75.       set("\x01",eval("\x01") - 331);
  76.       break;
  77.    }
  78.    if(eval("\x01") == 365)
  79.    {
  80.       set("\x01",eval("\x01") + 227);
  81.       break;
  82.    }
  83.    if(eval("\x01") == 505)
  84.    {
  85.       set("\x01",eval("\x01") + 23);
  86.       break;
  87.    }
  88.    if(eval("\x01") == 137)
  89.    {
  90.       set("\x01",eval("\x01") + 472);
  91.       set(┬º┬ºpop(),eval(┬º┬ºpop()) + 132);
  92.       pr._alpha = 0;
  93.       step = 10;
  94.       this.onEnterFrame = function()
  95.       {
  96.          pr.gotoAndStop(Math.round(100 * _root.getBytesLoaded() / _root.getBytesTotal()));
  97.          pr._alpha += step;
  98.          if(pr._alpha > 100)
  99.          {
  100.             pr._alpha = 100;
  101.             step = 0;
  102.          }
  103.          if(step < 0)
  104.          {
  105.             this._alpha += step;
  106.          }
  107.          if(this._alpha <= 0)
  108.          {
  109.             this._parent.loaded();
  110.          }
  111.          if(_root.getBytesLoaded() == _root.getBytesTotal())
  112.          {
  113.             step = -10;
  114.          }
  115.       };
  116.       stop();
  117.       break;
  118.    }
  119.    if(eval("\x01") == 510)
  120.    {
  121.       set("\x01",eval("\x01") - 426);
  122.       break;
  123.    }
  124.    if(eval("\x01") == 609)
  125.    {
  126.       set("\x01",eval("\x01") + 160);
  127.       ┬º┬ºpush(true);
  128.       continue;
  129.    }
  130.    if(eval("\x01") == 241)
  131.    {
  132.       set("\x01",eval("\x01") + 264);
  133.       if(┬º┬ºpop())
  134.       {
  135.          set("\x01",eval("\x01") + 23);
  136.       }
  137.       continue;
  138.    }
  139.    if(eval("\x01") == 528)
  140.    {
  141.       set("\x01",eval("\x01") + 33);
  142.       ┬º┬ºpush(true);
  143.       continue;
  144.    }
  145.    if(eval("\x01") == 243)
  146.    {
  147.       set("\x01",eval("\x01") + 78);
  148.       ┬º┬ºpush(true);
  149.       continue;
  150.    }
  151.    if(eval("\x01") == 592)
  152.    {
  153.       set("\x01",eval("\x01") + 10);
  154.       ┬º┬ºpush(true);
  155.       continue;
  156.    }
  157.    if(eval("\x01") == 84)
  158.    {
  159.       set("\x01",eval("\x01") + 158);
  160.       if(!_global.engine)
  161.       {
  162.          _global.engine = new Object();
  163.       }
  164.       ┬º┬ºpop();
  165.       if(!_global.engine.Screen)
  166.       {
  167.          engine.Screen extends MovieClip;
  168.          var _loc2_ = engine.Screen = function()
  169.          {
  170.             super();
  171.             this.arrowMc = this.createEmptyMovieClip("arrowMc",this.getNextHighestDepth());
  172.             this.gameArea = this.level4.level3.level2.level1;
  173.             this.cameraSpeed = 100;
  174.             this.poleRot = 0;
  175.             this.scale = 400;
  176.          }.prototype;
  177.          _loc2_.setGoal = function(g, p)
  178.          {
  179.             this.goal = g;
  180.             this.preview = p;
  181.          };
  182.          _loc2_.setCameraSpeed = function(val)
  183.          {
  184.             this.cameraSpeed = val;
  185.          };
  186.          _loc2_.loadBg = function(url, compliteFunc, progressFunc, goal)
  187.          {
  188.             if(!this.gameArea.trassa)
  189.             {
  190.                this.gameArea.createEmptyMovieClip("trassa",this.gameArea.getNextHighestDepth());
  191.             }
  192.             var _loc2_ = new Object();
  193.             var _loc3_ = new MovieClipLoader();
  194.             _loc2_.parent = this;
  195.             _loc2_.onLoadInit = function(g)
  196.             {
  197.                trace("screen loading complite " + compliteFunc);
  198.                this = this.parent;
  199.                g._xscale = this.scale;
  200.                g._yscale = this.scale;
  201.                compliteFunc.apply(goal,[true]);
  202.             };
  203.             _loc2_.onLoadError = function(g)
  204.             {
  205.                trace("screen loading error " + compliteFunc);
  206.                this = this.parent;
  207.                compliteFunc.apply(goal,[false]);
  208.             };
  209.             _loc2_.onLoadProgress = function(target, bytesLoaded, bytesTotal)
  210.             {
  211.                this = this.parent;
  212.                progressFunc.apply(goal,[bytesLoaded,bytesTotal]);
  213.             };
  214.             _loc3_.addListener(_loc2_);
  215.             _loc3_.loadClip(url,this.gameArea.trassa);
  216.             trace(">>>>>>>> url " + url);
  217.          };
  218.          _loc2_.setSize = function(x, y, dx, dy)
  219.          {
  220.             this._x = x;
  221.             this._y = y;
  222.             this.level4._x = dx / 2;
  223.             this.level4._y = dy / 2;
  224.             this.level4.level3._yscale = 60;
  225.             var _loc3_ = this._parent.getNextHighestDepth();
  226.             var _loc2_ = this._parent.createEmptyMovieClip("mask " + _loc3_,_loc3_);
  227.             _loc2_.beginFill(0,100);
  228.             _loc2_.moveTo(0,0);
  229.             _loc2_.lineTo(0,dy);
  230.             _loc2_.lineTo(dx,dy);
  231.             _loc2_.lineTo(dx,0);
  232.             _loc2_._x = x;
  233.             _loc2_._y = y;
  234.             _loc2_.endFill();
  235.             this.setMask(_loc2_);
  236.          };
  237.          _loc2_.getAngel = function(angel)
  238.          {
  239.             this.arrowMc._rotation = angel;
  240.             return this.arrowMc._rotation;
  241.          };
  242.          _loc2_.updateLevel1 = function()
  243.          {
  244.             var _loc2_ = new Object();
  245.             _loc2_.x = this.goal.getX();
  246.             _loc2_.y = this.goal.getY();
  247.             this.gameArea.trassa.localToGlobal(_loc2_);
  248.             this.gameArea.globalToLocal(_loc2_);
  249.             this.gameArea._x -= (_loc2_.x + this.gameArea._x) / 5;
  250.             this.gameArea._y -= (_loc2_.y + this.gameArea._y) / 5;
  251.          };
  252.          _loc2_.updateLevel2 = function()
  253.          {
  254.             var _loc4_ = this.level4.level3.level2._rotation;
  255.             var _loc3_ = this.goal.getRotation();
  256.             var _loc6_ = _loc3_ - _loc4_;
  257.             var _loc5_ = _loc4_ - _loc3_;
  258.             this.poleRot += this.getAngel(- _loc3_ - this.poleRot) / _root.gameInfo.settings.cameraSpeed;
  259.             this.level4.level3.level2._rotation = this.poleRot - 90;
  260.             this.preview.preview._rotation = _loc4_;
  261.          };
  262.          addr599:
  263.          _loc2_.updateLevel3 = function()
  264.          {
  265.             var _loc2_ = 100 - 50 * (this.goal.autoSpeed / this.goal.autoSpeedMax);
  266.             this.level4._xscale -= (this.level4._xscale - _loc2_) / 50;
  267.             this.level4._yscale -= (this.level4._yscale - _loc2_) / 50;
  268.             this.scaleNow = this.level4._xscale;
  269.          };
  270.          _loc2_.update = function()
  271.          {
  272.             this.updateLevel1();
  273.             this.updateLevel2();
  274.             this.updateLevel3();
  275.          };
  276.          _loc2_.addObject = function()
  277.          {
  278.             var _loc2_ = this.getNextHighestDepth();
  279.             var _loc3_ = this.attachMovie("a1","a" + _loc2_,this.getNextHighestDepth());
  280.             return _loc3_;
  281.          };
  282.          _loc2_.loadObjSkin = function(g, url, compliteFunc, progressFunc, goal)
  283.          {
  284.             var _loc2_ = new Object();
  285.             var _loc3_ = new MovieClipLoader();
  286.             _loc2_.parent = this;
  287.             _loc2_.onLoadInit = function(g)
  288.             {
  289.                trace("obj skin loading complite " + compliteFunc);
  290.                this = this.parent;
  291.                compliteFunc.apply(goal,[true]);
  292.             };
  293.             _loc2_.onLoadError = function(g)
  294.             {
  295.                trace("obj skin loading error " + compliteFunc);
  296.                this = this.parent;
  297.                compliteFunc.apply(goal,[false]);
  298.             };
  299.             _loc2_.onLoadProgress = function(target, bytesLoaded, bytesTotal)
  300.             {
  301.                this = this.parent;
  302.                progressFunc.apply(goal,[bytesLoaded,bytesTotal]);
  303.             };
  304.             _loc3_.addListener(_loc2_);
  305.             _loc3_.loadClip(url,g);
  306.             trace(">>>>>>>> url " + url);
  307.          };
  308.          _loc2_.get360 = function(num)
  309.          {
  310.             return num - 360 * Math.floor(num / 360);
  311.          };
  312.          _loc2_.updateObject = function(g1, p)
  313.          {
  314.             var _loc2_ = new Object();
  315.             _loc2_.x = p.getX();
  316.             _loc2_.y = p.getY();
  317.             this.gameArea.trassa.localToGlobal(_loc2_);
  318.             this.globalToLocal(_loc2_);
  319.             g1._x = _loc2_.x;
  320.             g1._y = _loc2_.y;
  321.             var _loc5_ = Math.round(this.get360(p.getRotation() + this.poleRot) / 5);
  322.             g1.gotoAndStop(_loc5_);
  323.             g1.swapDepths(Math.round(g1._y * 1000));
  324.             g1._xscale = this.scaleNow;
  325.             g1._yscale = this.scaleNow;
  326.          };
  327.          ┬º┬ºpush(ASSetPropFlags(engine.Screen.prototype,null,1));
  328.       }
  329.       ┬º┬ºpop();
  330.       break;
  331.    }
  332.    if(eval("\x01") == 321)
  333.    {
  334.       set("\x01",eval("\x01") + 569);
  335.       if(┬º┬ºpop())
  336.       {
  337.          set("\x01",eval("\x01") - 831);
  338.       }
  339.       continue;
  340.    }
  341.    if(eval("\x01") == 454)
  342.    {
  343.       set("\x01",eval("\x01") - 317);
  344.       if(┬º┬ºpop())
  345.       {
  346.          set("\x01",eval("\x01") + 472);
  347.       }
  348.       continue;
  349.    }
  350.    if(eval("\x01") == 975)
  351.    {
  352.       set("\x01",eval("\x01") - 734);
  353.       ┬º┬ºpush(true);
  354.       continue;
  355.    }
  356.    if(eval("\x01") == 377)
  357.    {
  358.       set("\x01",eval("\x01") + 598);
  359.       break;
  360.    }
  361.    if(eval("\x01") == 602)
  362.    {
  363.       set("\x01",eval("\x01") - 225);
  364.       if(┬º┬ºpop())
  365.       {
  366.          set("\x01",eval("\x01") + 598);
  367.       }
  368.       continue;
  369.    }
  370.    if(eval("\x01") != 105)
  371.    {
  372.       if(eval("\x01") == 215)
  373.       {
  374.          set("\x01",eval("\x01") + 454);
  375.          ┬º┬ºpop() extends ┬º┬ºpop() | (┬º┬ºpop() | ┬º┬ºpop() << ┬º┬ºpop() % (┬º┬ºpop() << (┬º┬ºpop() >>> (┬º┬ºpop() gt ┬º┬ºpop() >>> (┬º┬ºpop() | ┬º┬ºpop())))));
  376.          trace(┬º┬ºpop() << (┬º┬ºpop() gt (┬º┬ºpop() > ┬º┬ºpop())()));
  377.          trace(┬º┬ºpop() << (┬º┬ºpop() gt (┬º┬ºpop() >>> (┬º┬ºpop() << ┬º┬ºpop()))()));
  378.          ┬º┬ºpop() extends ┬º┬ºpop() >> (┬º┬ºpop() >>> ┬º┬ºpop());
  379.          ┬º┬ºpush(┬º┬ºpop() >>> (┬º┬ºpop() >> (┬º┬ºpop() | ┬º┬ºpop() >>> ┬º┬ºpop()())));
  380.          break;
  381.       }
  382.       if(eval("\x01") != 669)
  383.       {
  384.          break;
  385.       }
  386.       set("\x01",eval("\x01") - 215);
  387.       ┬º┬ºpush(true);
  388.       continue;
  389.    }
  390.    set("\x01",eval("\x01") + 138);
  391.    toggleHighQuality();
  392.    toggleHighQuality();
  393.    ┬º┬ºpop()[┬º┬ºpop()]._xscale = engine.Screen = function()
  394.    {
  395.       super();
  396.       this.arrowMc = this.createEmptyMovieClip("arrowMc",this.getNextHighestDepth());
  397.       this.gameArea = this.level4.level3.level2.level1;
  398.       this.cameraSpeed = 100;
  399.       this.poleRot = 0;
  400.       this.scale = 400;
  401.    }.level4._xscale - (engine.Screen = function()
  402.    {
  403.       super();
  404.       this.arrowMc = this.createEmptyMovieClip("arrowMc",this.getNextHighestDepth());
  405.       this.gameArea = this.level4.level3.level2.level1;
  406.       this.cameraSpeed = 100;
  407.       this.poleRot = 0;
  408.       this.scale = 400;
  409.    }.level4._xscale - _loc2_) / 50;
  410.    engine.Screen = function()
  411.    {
  412.       super();
  413.       this.arrowMc = this.createEmptyMovieClip("arrowMc",this.getNextHighestDepth());
  414.       this.gameArea = this.level4.level3.level2.level1;
  415.       this.cameraSpeed = 100;
  416.       this.poleRot = 0;
  417.       this.scale = 400;
  418.    }.level4._yscale = engine.Screen = function()
  419.    {
  420.       super();
  421.       this.arrowMc = this.createEmptyMovieClip("arrowMc",this.getNextHighestDepth());
  422.       this.gameArea = this.level4.level3.level2.level1;
  423.       this.cameraSpeed = 100;
  424.       this.poleRot = 0;
  425.       this.scale = 400;
  426.    }.level4._yscale - (engine.Screen = function()
  427.    {
  428.       super();
  429.       this.arrowMc = this.createEmptyMovieClip("arrowMc",this.getNextHighestDepth());
  430.       this.gameArea = this.level4.level3.level2.level1;
  431.       this.cameraSpeed = 100;
  432.       this.poleRot = 0;
  433.       this.scale = 400;
  434.    }.level4._yscale - _loc2_) / 50;
  435.    engine.Screen = function()
  436.    {
  437.       super();
  438.       this.arrowMc = this.createEmptyMovieClip("arrowMc",this.getNextHighestDepth());
  439.       this.gameArea = this.level4.level3.level2.level1;
  440.       this.cameraSpeed = 100;
  441.       this.poleRot = 0;
  442.       this.scale = 400;
  443.    }.scaleNow = engine.Screen = function()
  444.    {
  445.       super();
  446.       this.arrowMc = this.createEmptyMovieClip("arrowMc",this.getNextHighestDepth());
  447.       this.gameArea = this.level4.level3.level2.level1;
  448.       this.cameraSpeed = 100;
  449.       this.poleRot = 0;
  450.       this.scale = 400;
  451.    }.level4._xscale;
  452.    ┬º┬ºgoto(addr599);
  453. }
  454.